import threading



class PrintThread(threading.Thread):
    num = 0

    def __init__(self,num):
        threading.Thread.__init__(self)
        self.num=num

    def run(self):

        for x in range(0, 4):
            print(f"{self.num},{x}")


if __name__ == "__main__":

    th1 = PrintThread(1)
    th2 = PrintThread(2)

    th1.start()
    print("333333")
    th2.start()
    print("123321")